import 'package:flutter/material.dart';

class ShebaiSendRepearPager extends StatefulWidget {
  @override
  _ShebaiSendRepearPagerState createState() => _ShebaiSendRepearPagerState();
}

class _ShebaiSendRepearPagerState extends State<ShebaiSendRepearPager> {
  var _userServerController = new TextEditingController();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          leading: InkWell(
            onTap: () {
              Navigator.of(context).pop();
            }, //故障申请表
            child: Icon(
              Icons.chevron_left,
              size: 29.0,
              color: Colors.white,
            ),
          ),
          automaticallyImplyLeading: false,
          centerTitle: true,
          title: Text(
            "设备保修",
            style: TextStyle(fontSize: 16.0),
          ),
          actions: <Widget>[
            Center(
              child: Container(
                  padding: new EdgeInsets.only(right: 20.0),
                  child: InkWell(
                    onTap: () {},
                    child: Text("保持"),
                  )),
            ),
          ],
        ),
        backgroundColor: Color(0xFFEEEEEE),
        body: Stack(
          alignment: Alignment.bottomCenter,
          children: <Widget>[
            Container(
              child: ListView(
                children: <Widget>[
                  Container(
                    color: Colors.white,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.start,
                      children: <Widget>[
                        Container(
                          height: 36.0,
                          padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                          child: Text("选择设备*"),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 60.0),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 30.0),
                        ),
                      ],
                    ),
                  ),
                  Container(
                    height: 1.0,
                    width: MediaQuery.of(context).size.width,
                    color: Colors.black12,
                  ),
                  //TODO 1
                  Container(
                    color: Colors.white,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.start,
                      children: <Widget>[
                        Container(
                          height: 36.0,
                          padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                          child: Text("设备名称"),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 60.0),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 30.0),
                        ),
                      ],
                    ),
                  ),
                  Container(
                    height: 1.0,
                    width: MediaQuery.of(context).size.width,
                    color: Colors.black12,
                  ),
                  Container(
                    color: Colors.white,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.start,
                      children: <Widget>[
                        Container(
                          height: 36.0,
                          padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                          child: Text("设备类型*"),
                        ),
                        Expanded(child: Container()),
                        Padding(
                          padding: new EdgeInsets.only(right: 10.0),
                          child: Container(
                            child: Image.asset(
                                "images/mipmap-xhdpi-v4/gteq_icon_main_go.png"),
                            width: 20.0,
                            height: 20.0,
                          ),
                        ),
                      ],
                    ),
                  ),
                  Container(
                    height: 1.0,
                    width: MediaQuery.of(context).size.width,
                    color: Colors.black12,
                  ),
                  Container(
                    color: Colors.white,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.start,
                      children: <Widget>[
                        Container(
                          height: 36.0,
                          padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                          child: Text("规格型号"),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 60.0),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 30.0),
                        ),
                      ],
                    ),
                  ),
                  Container(
                    height: 1.0,
                    width: MediaQuery.of(context).size.width,
                    color: Colors.black12,
                  ),
                  Container(
                    color: Colors.white,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.start,
                      children: <Widget>[
                        Container(
                          height: 36.0,
                          padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                          child: Text("所在部门*"),
                        ),
                        Expanded(child: Container()),
                        Padding(
                          padding: new EdgeInsets.only(right: 10.0),
                          child: Container(
                            child: Image.asset(
                                "images/mipmap-xhdpi-v4/gteq_icon_main_go.png"),
                            width: 20.0,
                            height: 20.0,
                          ),
                        ),
                      ],
                    ),
                  ),
                  Container(
                    height: 1.0,
                    width: MediaQuery.of(context).size.width,
                    color: Colors.black12,
                  ),
                  Container(
                    color: Colors.white,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.start,
                      children: <Widget>[
                        Container(
                          height: 36.0,
                          padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                          child: Text("设备编号*"),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 60.0),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 30.0),
                        ),
                      ],
                    ),
                  ),
                  Container(
                    height: 1.0,
                    width: MediaQuery.of(context).size.width,
                    color: Colors.black12,
                  ),
                  Container(
                    color: Colors.white,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.start,
                      children: <Widget>[
                        Container(
                          height: 36.0,
                          padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                          child: Text("安装地点"),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 60.0),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 30.0),
                        ),
                      ],
                    ),
                  ),
                  Container(
                    height: 1.0,
                    width: MediaQuery.of(context).size.width,
                    color: Colors.black12,
                  ),
                  Container(
                    color: Colors.white,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.start,
                      children: <Widget>[
                        Container(
                          height: 36.0,
                          padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                          child: Text("维修单号"),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 60.0),
                        ),
                        Expanded(child: Container()),
                        Padding(
                          padding: new EdgeInsets.only(right: 10.0),
                          child: Container(
                            child: Image.asset(
                                "images/mipmap-xhdpi-v4/gteq_icon_main_go.png"),
                            width: 20.0,
                            height: 20.0,
                          ),
                        ),
                      ],
                    ),
                  ),
                  Container(
                    height: 1.0,
                    width: MediaQuery.of(context).size.width,
                    color: Colors.black12,
                  ),
                  Container(
                    color: Colors.white,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.start,
                      children: <Widget>[
                        Container(
                          height: 36.0,
                          padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                          child: Text("故障图片"),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 60.0),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 30.0),
                        ),
                      ],
                    ),
                  ),
                  Container(
                    height: 1.0,
                    width: MediaQuery.of(context).size.width,
                    color: Colors.black12,
                  ),
                  Container(
                    color: Colors.white,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.start,
                      children: <Widget>[
                        Container(
                          height: 36.0,
                          padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                          child: Text("报修语言"),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 60.0),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 30.0),
                        ),
                      ],
                    ),
                  ),
                  Container(
                    height: 1.0,
                    width: MediaQuery.of(context).size.width,
                    color: Colors.black12,
                  ),
                  Container(
                    color: Colors.white,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.start,
                      children: <Widget>[
                        Container(
                          height: 36.0,
                          padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                          child: Text("紧急程度*"),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 60.0),
                        ),
                        Expanded(
                          child: new TextField(
                            keyboardType: TextInputType.text,
                            focusNode: FocusNode(),
                            cursorWidth: 1.5,
                            cursorColor: Colors.lightBlueAccent,
                            style: TextStyle(color: Colors.white),
                            controller: _userServerController,
                            decoration: new InputDecoration(
                              hintText: "",
                              focusedBorder: InputBorder.none,
                            ),
                          ),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 30.0),
                        ),
                      ],
                    ),
                  ),
                  Container(
                    height: 1.0,
                    width: MediaQuery.of(context).size.width,
                    color: Colors.black12,
                  ),
                  Container(
                    color: Colors.white,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.start,
                      children: <Widget>[
                        Container(
                          height: 36.0,
                          padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                          child: Text("故障名称"),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 60.0),
                        ),
                        Expanded(
                          child: new TextField(
                            keyboardType: TextInputType.text,
                            focusNode: FocusNode(),
                            cursorWidth: 1.5,
                            cursorColor: Colors.lightBlueAccent,
                            style: TextStyle(color: Colors.black12),
                            controller: _userServerController,
                            decoration: new InputDecoration(
                              hintText: "",
                              focusedBorder: InputBorder.none,
                            ),
                          ),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 30.0),
                        ),
                      ],
                    ),
                  ),
                  Container(
                    height: 1.0,
                    width: MediaQuery.of(context).size.width,
                    color: Colors.black12,
                  ),
                  Container(
                    color: Colors.white,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.start,
                      children: <Widget>[
                        Container(
                          height: 36.0,
                          padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                          child: Text("故障编码"),
                        ),
                        Expanded(
                          child: new TextField(
                            keyboardType: TextInputType.text,
                            focusNode: FocusNode(),
                            cursorWidth: 1.5,
                            cursorColor: Colors.lightBlueAccent,
                            style: TextStyle(color: Colors.black12),
                            controller: _userServerController,
                            decoration: new InputDecoration(
                              hintText: "",
                              focusedBorder: InputBorder.none,
                            ),
                          ),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 30.0),
                        ),
                      ],
                    ),
                  ),
                  Container(
                    height: 1.0,
                    width: MediaQuery.of(context).size.width,
                    color: Colors.black12,
                  ),
                  Container(
                    color: Colors.white,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.start,
                      children: <Widget>[
                        Container(
                          height: 36.0,
                          padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                          child: Text("故障描述*"),
                        ),
                        Expanded(
                          child: new TextField(
                            keyboardType: TextInputType.text,
                            focusNode: FocusNode(),
                            cursorWidth: 1.5,
                            cursorColor: Colors.lightBlueAccent,
                            style: TextStyle(color: Colors.black12),
                            controller: _userServerController,
                            decoration: new InputDecoration(
                              hintText: "",
                              focusedBorder: InputBorder.none,
                            ),
                          ),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 30.0),
                        ),
                      ],
                    ),
                  ),
                  Container(
                    height: 1.0,
                    width: MediaQuery.of(context).size.width,
                    color: Colors.black12,
                  ),
                  Container(
                    color: Colors.white,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.start,
                      children: <Widget>[
                        Container(
                          height: 36.0,
                          padding: new EdgeInsets.only(top: 10.0, left: 10.0),
                          child: Text("备注"),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 60.0),
                        ),
                        Expanded(
                          child: new TextField(
                            keyboardType: TextInputType.text,
                            focusNode: FocusNode(),
                            cursorWidth: 1.5,
                            cursorColor: Colors.lightBlueAccent,
                            style: TextStyle(color: Colors.black12),
                            controller: _userServerController,
                            decoration: new InputDecoration(
                              hintText: "",
                              focusedBorder: InputBorder.none,
                            ),
                          ),
                        ),
                        Padding(
                          padding: new EdgeInsets.only(right: 30.0),
                        ),
                      ],
                    ),
                  ),
                  Container(
                    height: 1.0,
                    width: MediaQuery.of(context).size.width,
                    color: Colors.black12,
                  ),
                ],
              ),
            ),
            new Container(
              height: 35.0,
              width: MediaQuery.of(context).size.width,
              color: Color.fromRGBO(45, 46, 55, 22.0),
              child: Center(
                child: Text(
                  "保存",
                  style: TextStyle(color: Colors.white),
                ),
              ),
            )
          ],
        ));
  }
}
